#include <stdio.h>
#include <stdlib.h>
#define SECS_PER_MIN 60
#define SECS_PER_HOUR 3600
unsigned seconds;
void transform( unsigned seconds);
int main( void )
{
    printf("Enter number of seconds (< 65000): ");
scanf("%u", &seconds);
printf("\n%u seconds is equal to ", seconds);
transform(seconds);
    system("pause");
    return 0;
}
void transform( unsigned seconds)
{
    unsigned minutes, hours, secs_left, mins_left;
    hours =seconds/SECS_PER_HOUR;
    minutes = seconds % SECS_PER_HOUR;
    mins_left =minutes/SECS_PER_MIN;
    secs_left =minutes%SECS_PER_MIN;
    printf("%u h, %u m, and %u s\n", hours, mins_left, secs_left);
}

